import { createApp } from 'vue'

//全局样式
import "./style/index.scss";
//element-plus暗黑模式样式
//import 'element-plus/theme-chalk/dark/css-vars.css';

//@ts-ignore
import App from './App.vue';
import 'virtual:svg-icons-register';  //vite-plugin-svg-icons 插件注册配置

//引入自定义插件对象，批量注册整个项目全局组件
//@ts-ignore
import GlobalComponents  from '@/components/index.ts';
//导入路由配置
import router from "@/router/index.ts";
//引入路由鉴权文件
import "@/permisstion.ts";
//导入仓库
import pinia from '@/store/index.ts';
//引入自定义指令配置函数
//import { isHasButton } from './directive';

const app = createApp(App);

//执行下自定义指令函数
//isHasButton(app);

app.use(GlobalComponents);
app.use(pinia);
app.use(router);


app.mount("#app");


// console.log(import.meta.env);

